package com.ydgk.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.sql.Date;

public class Admin {
    private Integer aid;
    private String aname;
    private String apass;
    private String asex;
    private String aphone;
    private String aemail;
    @JSONField(format = "yyyy-MM-dd")
    private Date birthday;
    private String aphoto;

    public Admin() {
    }

    public Admin(Integer aid, String aname, String apass, String asex, String aphone, String aemail, Date birthday, String aphoto) {
        this.aid = aid;
        this.aname = aname;
        this.apass = apass;
        this.asex = asex;
        this.aphone = aphone;
        this.aemail = aemail;
        this.birthday = birthday;
        this.aphoto = aphoto;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getAname() {
        return aname;
    }

    public void setAname(String aname) {
        this.aname = aname;
    }

    public String getApass() {
        return apass;
    }

    public void setApass(String apass) {
        this.apass = apass;
    }

    public String getAsex() {
        return asex;
    }

    public void setAsex(String asex) {
        this.asex = asex;
    }

    public String getAphone() {
        return aphone;
    }

    public void setAphone(String aphone) {
        this.aphone = aphone;
    }

    public String getAemail() {
        return aemail;
    }

    public void setAemail(String aemail) {
        this.aemail = aemail;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getAphoto() {
        return aphoto;
    }

    public void setAphoto(String aphoto) {
        this.aphoto = aphoto;
    }

    @Override
    public String toString() {
        return "Admin{" +
                "aid=" + aid +
                ", aname='" + aname + '\'' +
                ", apass='" + apass + '\'' +
                ", asex='" + asex + '\'' +
                ", aphone='" + aphone + '\'' +
                ", aemail='" + aemail + '\'' +
                ", birthday=" + birthday +
                ", aphoto='" + aphoto + '\'' +
                '}';
    }
}
